package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etime.perfectschool.pojo.FoodComments;
import org.springframework.stereotype.Repository;

import java.util.List;

//  美食评论表
@Repository
public interface FoodCommentsMapper extends BaseMapper<FoodComments> {
    //获取某条美食的所有评论
    List<FoodComments> getAllFoodComments(int foodId);
    //删除某条美食的评论
    int deleteFoodCommentsByfoodId(int foodId);
}
